package com.pshdhx.aiagent.demo.invoke;

import com.alibaba.cloud.ai.dashscope.api.DashScopeApi;
import org.springframework.ai.chat.messages.AssistantMessage;
import org.springframework.ai.chat.model.ChatModel;
import org.springframework.ai.chat.prompt.Prompt;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

/**
 * @Author pansd
 * @Date 2025-06-20 14:48
 * @Des
 */
//@Component
public class SpringInvokeDemo
//        implements CommandLineRunner
{

//    @Autowired
//    private ChatModel chatModel;
//
//    @Override
//    public void run(String... args) throws Exception {
//
//        AssistantMessage output = chatModel.call(new Prompt("你好，请问你是谁")).getResult().getOutput();
//        System.out.println(output.getText());
//
//    }
}
